home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 210_01 / headers.eco < prev    next >
Encoding:
Text File  |  1985-11-13  |  6.0 KB  |  264 lines

  1. HEADERS.ECO      VERS:- 01.00  DATE:- 09/26/86  TIME:- 09:39:00 PM
  2.  
  3. Short descriptions of C programs and related files.
  4.  
  5. Written for ECO C compiler, version 3.40, by
  6.  
  7. John A. Rupley
  8. 30 Calle Belleza
  9. Tucson, AZ  85716
  10. (602) 325-4533
  11.  
  12. /***************************************************************************/
  13.  
  14.  
  15.  
  16. LDHFITR.C   
  17. LDHFITR.COM 
  18.  
  19. VERSION OF XXXXFITn, for:
  20.  
  21. nonlinear least squares fit by simplex minimizaton (Nelder-Mead algorithm).
  22.  
  23. analysis of lactate dehydrogenase initial rate kinetic data:
  24.     two substrate -- two product mechanism,
  25.     with inhibition by first product,
  26.     and with reactant and product abortive complexes;
  27.  
  28. see LDHFITR documentation for description of rate law.
  29.  
  30. compile with:
  31.     simpmain, simplib1, simplib0
  32.     floating point functions
  33.  
  34. the precision of the floating point functions must be high, ie 14 or more
  35.     decimal digits; eight digit precision is not enough for the 
  36.     matrix operations.
  37.  
  38. contents of the xxxxfitn module  =  
  39. declarations and routines for simplex fitting special to function to be fit:
  40.  
  41.     function for calculation of dependent variable and
  42.         weighted sum of residuals squared        = func()
  43.  
  44.     print of <data> records                    = fdatprint()
  45.                                 = fpointprint()
  46.  
  47.     other special displays                    = fspecial()
  48.  
  49.     all external declarations, except for <data>, which is 
  50.         defined as dummy storage in SIMPLIB1 
  51.         or its modification
  52.  
  53.  
  54.  
  55.  
  56.  
  57. LDHFITR.DAT 
  58.  
  59. test data file = input to LDHFITR.COM.
  60.     Usage:  ldhfitr  ldhfitr.dat  results_file
  61.  
  62.  
  63.  
  64.  
  65.  
  66. LDHFITR.DOC 
  67.  
  68. descriptioε oµ compute≥ reductioε oµ datß froφ kinetiπ 
  69.     measurement≤ fo≥ thσ enzymσ lactatσ dehydrogenasσ 
  70. information on how to run program LDHFIT
  71.  
  72.  
  73.  
  74.  
  75. LINEFITR.C   
  76. LINEFITR.COM 
  77.  
  78. VERSION OF XXXXFITn, for:
  79.  
  80. nonlinear least squares fit by simplex minimizaton (Nelder-Mead algorithm).
  81.  
  82. written to test operation of fitting program:
  83.     by fit of the linear function:     y  =  a  +  b * x
  84.     to data that can be reduced by hand.
  85.  
  86.  
  87.  
  88.  
  89.  
  90. LINEFITR.DAT 
  91.  
  92. test data file = input to LINEFITR.COM.
  93.     Usage:  linefitr  linefitr.dat  results_file
  94.  
  95.  
  96.  
  97.  
  98.  
  99. LOGONR.C   
  100.  
  101. logon routine, for ZCPR2 system:
  102.     load SYSIO.IO at iobuf;
  103.     load NAMES.DIR at ndbase;
  104.     display ruler line and prompts for operator logon information;
  105.     fill time and date arrays from Hayes clock;
  106.     display time, date, message, etc on crt;
  107.     timestmp logon information given by the operator;
  108.         append it to the LOG file.
  109.  
  110.  
  111.  
  112.  
  113.  
  114. PERCOLXR.C   
  115. PERCOLXR.COM 
  116.  
  117. Simulation of percolation on a two-dimensional square lattice, 
  118. Option to block one or more regions of the lattice to prevent sites 
  119. being filled (approximately circular blocked region = 1,3,5,3,1).
  120. The algorithm is not efficient (300 seconds/1000 site 2-d sheet).
  121.  
  122. A percolative process is characterized by a percolation transition, a phase
  123. change at which long-range connectivity (e.g., a gel phase; conduction 
  124. across the sample; etc) suddenly appears.  Connectivity is defined by the
  125. extent of a cluster of filled sites adjacent (ie, connected) in the lattice.
  126. Long-range connectivity is equivalent to a cluster of infinite extent.
  127.  
  128. The percolation model applies to stochastic processes taking place 
  129. in a spatially disordered system.  
  130. Examples: 
  131.     gelation; 
  132.     flow in a porous medium; 
  133.     dilute magnets; 
  134.     conductivity of conductor-insulator composite materials.
  135.  
  136. For a discussion of percolation, see R. Zallen, "The Physics of Amorphous
  137. Solids", John Wiley, New York, 1983.
  138.  
  139. This program finds the fractional occupancy of the model lattice at the 
  140. percolation transition.  Lattice sites are filled randomly.  When each filled
  141. site is added to the lattice, connectivity is tested along one dimension
  142. of the lattice (ie, between one pair of arbitrarily chosen sides of the 
  143. lattice).  The point of the percolation transition is the point at which
  144. connectivity between sides first appears.
  145.  
  146. Because of the stochastic character of percolation, a simulation consists
  147. of the averaging of NRPT determinations of the percolation transition.
  148.  
  149. The program is set for looping over the simulation, with change in
  150. control parameters at each loop.
  151.  
  152.  
  153.  
  154.  
  155.  
  156. SIMPFITR.DAT 
  157.  
  158. template file for input to XXXXFITn simplex fitting programs.
  159.  
  160. comments describe functions of control parameters.
  161.  
  162.  
  163.  
  164.  
  165.  
  166. SIMPFITR.DOC 
  167.  
  168. documentation for C routines for simplex fitting and
  169.     quadratic approximation of least squares surface.
  170.  
  171.  
  172.  
  173.  
  174.  
  175. SIMPLEXR.DOC 
  176.  
  177. notes on the simplex method of function minimization, by use of 
  178.     the Nelder-Mead algorithm.
  179.  
  180.  
  181.  
  182.  
  183.  
  184. SIMPLIB0.C   
  185.  
  186. functions for simplex fitting:
  187.     simplex fitting routine            = simpfit()
  188.     quadratic fit for standard deviations    = simpdev()
  189.     supporting functions
  190.  
  191.  
  192.  
  193.  
  194.  
  195. SIMPLIB1.C   
  196.  
  197. routines for input of data and control values for simplex minimization:
  198.     definition of the aggregate <data>, with a 
  199.         dummy structure declaration
  200.     usage message displayed on command line error         = use_mess()
  201.     opening of files for input and optional output        = file()
  202.     input of variables and data                = read_data()
  203.  
  204. the routines are (largely) independent of the function and data to be fit
  205.     (coded in XXXXFITn), and they (generally) need not be altered when 
  206.     XXXXFITn is modified.
  207.  
  208.  
  209.  
  210.  
  211.  
  212. SIMPMAIN.C   
  213.  
  214. main program controlling input, output & simplex fitting     = main()
  215.  
  216.  
  217.  
  218.  
  219.  
  220. SIMPOUTR.DOC 
  221.  
  222. descriptioε oµ outpu⌠ froφ thσ simple° fittinτ program≤ 
  223.  
  224.  
  225.  
  226.  
  227.  
  228. SUMGRADR.C   
  229. SUMGRADR.COM 
  230.  
  231. sum each student's grades, with weighting according to point value of report, 
  232.     exam, etc.  
  233. drop any grade entered as negative.  
  234. calculate average = sum grades / sum possible points.
  235. output sorted by name, and by average.
  236.  
  237.  
  238.  
  239.  
  240.  
  241. SUMGRADR.DAT 
  242.  
  243. test data file = input to SUMGRADR.COM.
  244.     Usage:  sumgradr  sumgradr.dat  results_file
  245.  
  246.  
  247.  
  248.  
  249.  
  250. SYS1CALR.MAC 
  251.  
  252. call to address given as the parameter, such as a system address
  253. outside the C program.
  254.  
  255. Usage:            .
  256.             .
  257.         (C program code)
  258.             .
  259.         sys1call(address to call)    eg, address = TINIT for
  260.             .                    SYSIO load
  261.         (more C program code)
  262.             .
  263.  
  264.